import { Base } from '../../utils/base.js'
class Member extends Base {
  constructor() {
    super();
  }
  //绑定手机号码
  binding(param, cb) {
    var that = this;
    var allParams = {
      url: 'member/bind-mobile',
      data: param,
      type: 'post',
      sCallback: function (res) {
        cb && cb(res)
      }
    };
    this.request(allParams);
  }
  //设置支付密码
  resetPaypwd(param, cb) {
    var that = this;
    var allParams = {
      url: 'member/reset-paypwd',
      data: param,
      type: 'post',
      sCallback: function (res) {
        cb && cb(res)
      }
    };
    this.request(allParams);
  }
  //获取用户信息
  info(param, cb) {
    var that = this;
    var allParams = {
      url: 'member/info',
      data: param,
      type: 'post',
      sCallback: function (res) {
        cb && cb(res)
      }
    };
    this.request(allParams);
  }
}
export { Member }